package com.tf_cut.backend.service.service;

import com.tf_cut.backend.common.pojo.Result;
import com.tf_cut.backend.common.service.CommonServiceImpl;
import com.tf_cut.backend.mapper.ServicePersonalIncomeTaxSetingMapper;
import com.tf_cut.backend.service.pojo.ServicePersonalIncomeTaxSeting;
import com.tf_cut.backend.service.vo.ServicePersonalIncomeTaxSetingVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
@Slf4j
public class ServicePersonalIncomeTaxSetingServiceImpl extends CommonServiceImpl<ServicePersonalIncomeTaxSetingVo, ServicePersonalIncomeTaxSeting, String> implements ServicePersonalIncomeTaxSetingService {



    @Autowired
    private ServicePersonalIncomeTaxSetingMapper servicePersonalIncomeTaxSetingMapper;


    public Result<ServicePersonalIncomeTaxSetingVo> insertServiceInfo(ServicePersonalIncomeTaxSetingVo avo){

        return this.save(avo);
    }

    public  List<ServicePersonalIncomeTaxSetingVo> queryByServiceId(ServicePersonalIncomeTaxSetingVo servicePersonalIncomeTaxSetingVo){
        return servicePersonalIncomeTaxSetingMapper.findListServiceInfo(servicePersonalIncomeTaxSetingVo);
    }


}
